package com.pretty.test.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.pretty.test.controller.pets.baike.vo.BaikeDashboardSimpleListVO;
import com.pretty.test.controller.pets.baike.vo.BaikeDashboardVO;
import com.pretty.test.controller.pets.baike.vo.BaikePageVO;
import com.pretty.test.entity.PetsBaike;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 宠物百科Mapper接口
 * @author dujianyu
 * @since 2021-04-06
 */
public interface PetsBaikeMapper extends BaseMapper<PetsBaike> {

    IPage<BaikePageVO> selectBaikePage(Page<BaikePageVO> page,@Param(Constants.WRAPPER) QueryWrapper queryWrapper);

    List<BaikeDashboardVO> dashboardList();

    List<BaikeDashboardSimpleListVO> dashboardSimpleList(@Param(Constants.WRAPPER) QueryWrapper queryWrapper);
}
